﻿/* 
author: istockphp.com
*/
$(document).ready(function () {

    $("a.topopup3").click(function () {
        loading(); // loading
        setTimeout(function () { // then show popup, deley in .5 second
            loadPopup(); // function show popup 
        }, 1000); // .5 second
        return false;
    });

    /* event for close the popup */
    $("div.close3").hover(
					function () {
					    $('span.ecs_tooltip3').show();
					},
					function () {
					    $('span.ecs_tooltip3').hide();
					}
				);

    $("div.close3").click(function () {
        disablePopup();  // function close pop up
    });

    $(this).keyup(function (event) {
        if (event.which == 27) { // 27 is 'Ecs' in the keyboard
            disablePopup();  // function close pop up
        }
    });

    $("div#backgroundPopup3").click(function () {
        disablePopup();  // function close pop up
    });

    $('a.livebox3').click(function () {
        alert('Hello World!');
        return false;
    });


    /************** start: functions. **************/
    function loading() {
        $("div.loader3").show();
    }
    function closeloading() {
        $("div.loader3").fadeOut('normal');
    }

    var popupStatus3 = 0; // set value

    function loadPopup() {
        if (popupStatus3 == 0) { // if value is 0, show popup
            closeloading(); // fadeout loading
            $("#topopup3").fadeIn(0500); // fadein popup div
            $("#backgroundPopup3").css("opacity", "0.7"); // css opacity, supports IE7, IE8
            $("#backgroundPopup3").fadeIn(0001);
            popupStatus3 = 1; // and set value to 1
        }
    }

    function disablePopup() {
        if (popupStatus3 == 1) { // if value is 1, close popup
            $("#topopup3").fadeOut("normal");
            $("#backgroundPopup3").fadeOut("normal");
            popupStatus3 = 0;  // and set value to 0
        }
    }
    /************** end: functions. **************/
}); // jQuery End

var popupStatus3 = 0;
$("a.topopup3").live('click', function () {

    $("div.loader3").show();
    setTimeout(function () { // then show popup, deley in .5 second
        if (popupStatus3 == 0) { // if value is 0, show popup
            $("div.loader3").fadeOut('normal'); // fadeout loading
            $("#topopup3").fadeIn(0500); // fadein popup div
            $("#backgroundPopup3").css("opacity", "0.7"); // css opacity, supports IE7, IE8
            $("#backgroundPopup3").fadeIn(0001);
            popupStatus3 = 1; // and set value to 1
        } // function show popup 
    }, 500); // .5 second
    return false;
});
$("div.close3").live('click', function () {
    if (popupStatus3 == 1) { // if value is 1, close popup
        $("#topopup3").fadeOut("normal");
        $("#backgroundPopup3").fadeOut("normal");
        popupStatus3 = 0;  // and set value to 0
    }
});







/* 
author: istockphp.com
*/
$(document).ready(function () {

    $("a.topopup4").click(function () {

        loading(); // loading
        setTimeout(function () { // then show popup, deley in .5 second
            loadPopup(); // function show popup 
        }, 500); // .5 second
        return false;
    });

    /* event for close the popup */
    $("div.close4").hover(
					function () {
					    $('span.ecs_tooltip4').show();
					},
					function () {
					    $('span.ecs_tooltip3').hide();
					}
				);

    $("div.close4").click(function () {
        disablePopup();  // function close pop up
    });
    $('.minuse').click(function () {
        disablePopup();
    });
    $(this).keyup(function (event) {
        if (event.which == 27) { // 27 is 'Ecs' in the keyboard
            disablePopup();  // function close pop up
        }
    });

    $("div#backgroundPopup4").click(function () {
        disablePopup();  // function close pop up
    });

    $('a.livebox4').click(function () {
        alert('Hello World!');
        return false;
    });


    /************** start: functions. **************/
    function loading() {
        $("div.loader4").show();
    }
    function closeloading() {
        $("div.loader4").fadeOut('normal');
    }

    var popupStatus4 = 0; // set value

    function loadPopup() {
        if (popupStatus4 == 0) { // if value is 0, show popup
            closeloading(); // fadeout loading
            $("#topopup4").fadeIn(0500); // fadein popup div
            $("#backgroundPopup4").css("opacity", "0.7"); // css opacity, supports IE7, IE8
            $("#backgroundPopup4").fadeIn(0001);
            popupStatus4 = 1; // and set value to 1
        }
    }

    function disablePopup() {
        if (popupStatus4 == 1) { // if value is 1, close popup
            $("#topopup4").fadeOut("normal");
            $("#backgroundPopup4").fadeOut("normal");
            popupStatus4 = 0;  // and set value to 0
        }
    }
    /************** end: functions. **************/
});  // jQuery End
var popupStatus4 = 0;
$("a.topopup4").live('click', function () {
   
    $("div.loader4").show();
    setTimeout(function () { // then show popup, deley in .5 second
        if (popupStatus4 == 0) { // if value is 0, show popup
            $("div.loader4").fadeOut('normal'); // fadeout loading
            $("#topopup4").fadeIn(0500); // fadein popup div
            $("#backgroundPopup4").css("opacity", "0.7"); // css opacity, supports IE7, IE8
            $("#backgroundPopup4").fadeIn(0001);
            popupStatus4 = 1; // and set value to 1
        } // function show popup 
    }, 500); // .5 second
    return false;
});
$("div.close4").live('click', function () {
    if (popupStatus4 == 1) { // if value is 1, close popup
        $("#topopup4").fadeOut("normal");
        $("#backgroundPopup4").fadeOut("normal");
        popupStatus4 = 0;  // and set value to 0
    }
});









/* 
author: istockphp.com
*/
$(document).ready(function () {

    $("a.topopup5").click(function () {

        loading(); // loading
        setTimeout(function () { // then show popup, deley in .5 second
            loadPopup(); // function show popup 
        }, 500); // .5 second
        return false;
    });

    /* event for close the popup */
    $("div.close5").hover(
					function () {
					    $('span.ecs_tooltip5').show();
					},
					function () {
					    $('span.ecs_tooltip5').hide();
					}
				);

    $("div.close5").click(function () {
        disablePopup();  // function close pop up
    });
    $('.minuse').click(function () {
        disablePopup();
    });
    $(this).keyup(function (event) {
        if (event.which == 27) { // 27 is 'Ecs' in the keyboard
            disablePopup();  // function close pop up
        }
    });

    $("div#backgroundPopup5").click(function () {
        disablePopup();  // function close pop up
    });

    $('a.livebox5').click(function () {
        alert('Hello World!');
        return false;
    });


    /************** start: functions. **************/
    function loading() {
        $("div.loader5").show();
    }
    function closeloading() {
        $("div.loader5").fadeOut('normal');
    }

    var popupStatus5 = 0; // set value

    function loadPopup() {
        if (popupStatus5 == 0) { // if value is 0, show popup
            closeloading(); // fadeout loading
            $("#topopup5").fadeIn(0500); // fadein popup div
            $("#backgroundPopup5").css("opacity", "0.7"); // css opacity, supports IE7, IE8
            $("#backgroundPopup5").fadeIn(0001);
            popupStatus5 = 1; // and set value to 1
        }
    }

    function disablePopup() {
        if (popupStatus5 == 1) { // if value is 1, close popup
            $("#topopup5").fadeOut("normal");
            $("#backgroundPopup5").fadeOut("normal");
            popupStatus5 = 0;  // and set value to 0
        }
    }
    /************** end: functions. **************/
});  // jQuery End
var popupStatus5 = 0;
$("a.topopup5").live('click', function () {

    $("div.loader5").show();
    setTimeout(function () { // then show popup, deley in .5 second
        if (popupStatus5 == 0) { // if value is 0, show popup
            $("div.loader5").fadeOut('normal'); // fadeout loading
            $("#topopup5").fadeIn(0500); // fadein popup div
            $("#backgroundPopup5").css("opacity", "0.7"); // css opacity, supports IE7, IE8
            $("#backgroundPopup5").fadeIn(0001);
            popupStatus5 = 1; // and set value to 1
        } // function show popup 
    }, 500); // .5 second
    return false;
});
$("div.close5").live('click', function () {
    if (popupStatus5 == 1) { // if value is 1, close popup
        $("#topopup5").fadeOut("normal");
        $("#backgroundPopup5").fadeOut("normal");
        popupStatus5 = 0;  // and set value to 0
    }
});




/* 
author: istockphp.com
*/
$(document).ready(function () {

    $("a.topopup6").click(function () {

        loading(); // loading
        setTimeout(function () { // then show popup, deley in .5 second
            loadPopup(); // function show popup 
        }, 500); // .5 second
        return false;
    });

    /* event for close the popup */
    $("div.close6").hover(
					function () {
					    $('span.ecs_tooltip6').show();
					},
					function () {
					    $('span.ecs_tooltip6').hide();
					}
				);

    $("div.close6").click(function () {
        disablePopup();  // function close pop up
    });
    $('.minuse').click(function () {
        disablePopup();
    });
    $(this).keyup(function (event) {
        if (event.which == 27) { // 27 is 'Ecs' in the keyboard
            disablePopup();  // function close pop up
        }
    });

    $("div#backgroundPopup6").click(function () {
        disablePopup();  // function close pop up
    });

    $('a.livebox6').click(function () {
        alert('Hello World!');
        return false;
    });


    /************** start: functions. **************/
    function loading() {
        $("div.loader6").show();
    }
    function closeloading() {
        $("div.loader6").fadeOut('normal');
    }

    var popupStatus6 = 0; // set value

    function loadPopup() {
        if (popupStatus6 == 0) { // if value is 0, show popup
            closeloading(); // fadeout loading
            $("#topopup6").fadeIn(0500); // fadein popup div
            $("#backgroundPopup6").css("opacity", "0.7"); // css opacity, supports IE7, IE8
            $("#backgroundPopup6").fadeIn(0001);
            popupStatus6 = 1; // and set value to 1
        }
    }

    function disablePopup() {
        if (popupStatus6 == 1) { // if value is 1, close popup
            $("#topopup6").fadeOut("normal");
            $("#backgroundPopup6").fadeOut("normal");
            popupStatus6 = 0;  // and set value to 0
        }
    }
    /************** end: functions. **************/
});  // jQuery End
var popupStatus6 = 0;
$("a.topopup6").live('click', function () {

    $("div.loader6").show();
    setTimeout(function () { // then show popup, deley in .5 second
        if (popupStatus6 == 0) { // if value is 0, show popup
            $("div.loader6").fadeOut('normal'); // fadeout loading
            $("#topopup6").fadeIn(0500); // fadein popup div
            $("#backgroundPopup6").css("opacity", "0.7"); // css opacity, supports IE7, IE8
            $("#backgroundPopup6").fadeIn(0001);
            popupStatus6 = 1; // and set value to 1
        } // function show popup 
    }, 500); // .5 second
    return false;
});
$("div.close6").live('click', function () {
    if (popupStatus6 == 1) { // if value is 1, close popup
        $("#topopup6").fadeOut("normal");
        $("#backgroundPopup6").fadeOut("normal");
        popupStatus6 = 0;  // and set value to 0
    }
});











/* 
author: istockphp.com
*/
$(document).ready(function () {

    $("a.topopup5").click(function () {

        loading(); // loading
        setTimeout(function () { // then show popup, deley in .5 second
            loadPopup(); // function show popup 
        }, 500); // .5 second
        return false;
    });

    /* event for close the popup */
    $("div.close5").hover(
					function () {
					    $('span.ecs_tooltip5').show();
					},
					function () {
					    $('span.ecs_tooltip5').hide();
					}
				);

    $("div.close5").click(function () {
        disablePopup();  // function close pop up
    });
    $('.minuse').click(function () {
        disablePopup();
    });
    $(this).keyup(function (event) {
        if (event.which == 27) { // 27 is 'Ecs' in the keyboard
            disablePopup();  // function close pop up
        }
    });

    $("div#backgroundPopup5").click(function () {
        disablePopup();  // function close pop up
    });

    $('a.livebox5').click(function () {
        alert('Hello World!');
        return false;
    });


    /************** start: functions. **************/
    function loading() {
        $("div.loader5").show();
    }
    function closeloading() {
        $("div.loader5").fadeOut('normal');
    }

    var popupStatus5 = 0; // set value

    function loadPopup() {
        if (popupStatus5 == 0) { // if value is 0, show popup
            closeloading(); // fadeout loading
            $("#topopup5").fadeIn(0500); // fadein popup div
            $("#backgroundPopup5").css("opacity", "0.7"); // css opacity, supports IE7, IE8
            $("#backgroundPopup5").fadeIn(0001);
            popupStatus5 = 1; // and set value to 1
        }
    }

    function disablePopup() {
        if (popupStatus5 == 1) { // if value is 1, close popup
            $("#topopup5").fadeOut("normal");
            $("#backgroundPopup5").fadeOut("normal");
            popupStatus5 = 0;  // and set value to 0
        }
    }
    /************** end: functions. **************/
});  // jQuery End
var popupStatus5 = 0;
$("a.topopup5").live('click', function () {

    $("div.loader5").show();
    setTimeout(function () { // then show popup, deley in .5 second
        if (popupStatus5 == 0) { // if value is 0, show popup
            $("div.loader5").fadeOut('normal'); // fadeout loading
            $("#topopup5").fadeIn(0500); // fadein popup div
            $("#backgroundPopup5").css("opacity", "0.7"); // css opacity, supports IE7, IE8
            $("#backgroundPopup5").fadeIn(0001);
            popupStatus5 = 1; // and set value to 1
        } // function show popup 
    }, 500); // .5 second
    return false;
});
$("div.close5").live('click', function () {
    if (popupStatus5 == 1) { // if value is 1, close popup
        $("#topopup5").fadeOut("normal");
        $("#backgroundPopup5").fadeOut("normal");
        popupStatus5 = 0;  // and set value to 0
    }
});




/* 
author: istockphp.com
*/
$(document).ready(function () {

    $("a.topopup7").click(function () {

        loading(); // loading
        setTimeout(function () { // then show popup, deley in .5 second
            loadPopup(); // function show popup 
        }, 500); // .5 second
        return false;
    });

    /* event for close the popup */
    $("div.close7").hover(
					function () {
					    $('span.ecs_tooltip7').show();
					},
					function () {
					    $('span.ecs_tooltip7').hide();
					}
				);

    $("div.close7").click(function () {
        disablePopup();  // function close pop up
    });
    $('.minuse').click(function () {
        disablePopup();
    });
    $(this).keyup(function (event) {
        if (event.which == 27) { // 27 is 'Ecs' in the keyboard
            disablePopup();  // function close pop up
        }
    });

    $("div#backgroundPopup7").click(function () {
        disablePopup();  // function close pop up
    });

    $('a.livebox7').click(function () {
        alert('Hello World!');
        return false;
    });


    /************** start: functions. **************/
    function loading() {
        $("div.loader7").show();
    }
    function closeloading() {
        $("div.loader7").fadeOut('normal');
    }

    var popupStatus7 = 0; // set value

    function loadPopup() {
        if (popupStatus7 == 0) { // if value is 0, show popup
            closeloading(); // fadeout loading
            $("#topopup7").fadeIn(0500); // fadein popup div
            $("#backgroundPopup7").css("opacity", "0.7"); // css opacity, supports IE7, IE8
            $("#backgroundPopup7").fadeIn(0001);
            popupStatus7 = 1; // and set value to 1
        }
    }

    function disablePopup() {
        if (popupStatus7 == 1) { // if value is 1, close popup
            $("#topopup7").fadeOut("normal");
            $("#backgroundPopup7").fadeOut("normal");
            popupStatus7 = 0;  // and set value to 0
        }
    }
    /************** end: functions. **************/
});  // jQuery End
var popupStatus7 = 0;
$("a.topopup7").live('click', function () {

    $("div.loader7").show();
    setTimeout(function () { // then show popup, deley in .5 second
        if (popupStatus7 == 0) { // if value is 0, show popup
            $("div.loader7").fadeOut('normal'); // fadeout loading
            $("#topopup7").fadeIn(0500); // fadein popup div
            $("#backgroundPopup7").css("opacity", "0.7"); // css opacity, supports IE7, IE8
            $("#backgroundPopup7").fadeIn(0001);
            popupStatus7 = 1; // and set value to 1
        } // function show popup 
    }, 500); // .5 second
    return false;
});
$("div.close7").live('click', function () {
    if (popupStatus7 == 1) { // if value is 1, close popup
        $("#topopup7").fadeOut("normal");
        $("#backgroundPopup7").fadeOut("normal");
        popupStatus7 = 0;  // and set value to 0
    }
});